export interface PageInfo {
  page: number
  limit: number
  total: number
}

export interface UserInfo {
  username: string
  name: string
  avatar: string
  token: string
  expireTime: number
}

export interface BannerItem {
  title: string
  cover: string
  link: string
}

export interface LessonListItem {
  id: number
  thumb: string
  title: string
  price: number
  marketPrice: number
}

export interface CategoryItem {
  id: number
  title: string
  children: CategoryItem[]
}

export interface LessonDetail {
  id: number
  title: string
  thumb: string
  categoryId: number
  categoryTitle: string
  price: number
  marketPrice: number
  summary: string
  content: string
  teachers: string
  isBuyed: boolean
}

export interface ChapterItem {
  id: number
  title: string
  duration: number
}

export interface EbookItem {
  id: number
  title: string
  file: string
  size: number
}

export interface OrderListItem {
  id: number
  orderNo: string
  lessonId: number
  status: number
  price: number
  title: string
  thumb: string
  createdAt: number
}

export interface OrderDetail {
  id: number
  orderNo: string
  lessonId: number
  status: number
  price: number
  title: string
  thumb: string
  createdAt: number
}

export interface StudentInfo {
  name: string
  username: string
  nickname: string
  avatar: string
  phone: string
  email: string
  gender: string
  birthday: string
  address: string
  hobby: string
}

export interface MyLessonListItem {
  id: number
  title: string
  thumb: string
  chapterId: number
  chapterTitle: string
  totalDuration: number
  studyTimes: number
  progress: number
}

export interface MyChapterItem {
  id: number
  title: string
  video: string
  duration: number
  studyTimes: number
  progress: number
  play: boolean
}

export interface OrderStatusTabItem {
  title: string
  value: number | null
}

export interface VideoSource {
  id: number
  src: string
  type: string
}
